package com.wpp.concurrent.demo1_create_thread;

/**
 * @author wpp25
 * @date 2021/6/22 21:46
 * @description：
 */
public class Demo1Thread extends Thread{

    @Override
    public void run() {
        int count = 0;
        while (true) {
            System.out.println(Thread.currentThread().getName() + " 正在运行...childThread"+count++);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
